<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../css/app.css" />
		<link rel="stylesheet" type="text/css" href="css/real-name.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left backbtn"></a>
			<h1 class="mui-title">账户实名</h1>
		</header>
		<div class="mui-content">

			<div class="background">

			</div>
			<div class="info">
				<div class="cardimage">

				</div>
				<div class="tiptext">
					<p>完成账户实名，可核对真实身份</p>
					<p>保障合法权益</p>
				</div>
			</div>

			<div class="btn">
				<button type="button" class="mui-btn mui-btn-yellow mui-btn-block auth">开始验证</button>
			</div>
		</div>
		<script src="../lib/mui.min.js"></script>
		<script type="text/javascript" src="../lib/jquery-1.11.0.js"></script>
		<script type="text/javascript" src="../lib/service.js"></script>
		<script type="text/javascript" src="js/real-name.js"></script>
		<script type="text/javascript">
			mui.init()
			//			放在plusready里,否则会报错
			if(window.plus) {
				plusReady();
			} else {
				document.addEventListener("plusready", plusReady, false);
			}
			function plusReady() {
				plus.navigator.setStatusBarBackground("#FF7234");
				var str = localStorage.getItem('userinfo')
				var userid = JSON.parse(str).id
				init();
				$('.mui-btn-block').bind('tap', function() {
					plus.nativeUI.showWaiting()
					getServer('app/member/account', "", function(res) {
						console.log(JSON.stringify(res))
						plus.nativeUI.closeWaiting()
						JumpControl(res.data)
					},function(){
						plus.nativeUI.closeWaiting()
					});

				})
				window.plus.bridge.execSync("Moxie", "settingMoxie", [userid, moxieApiKey]);
			};
		</script>
	</body>

</html>